'use strict';
/*
 *@description: 我的资源资源列表对象
 *@author: wudandan
 *@date: 2020-10-29 13:44:03
*/
import YJTObject from 'yj-object';

class ContentData extends YJTObject {
  constructor () {
    const Fields = {
      // 文件编码
      id: '',
      // 文件名称
      name: '',
      // 文件类型
      fileFormat: {
        type: Number,
        default: 0
      },
      // 评分
      scoreNum: {
        type: Number,
        default: 0
      },
      // 热度
      hotNum: {
        type: Number,
        default: 0
      },
      // 上传时间
      createTime: '',
      // 上传者
      createName: '',
      // 审核状态
      reviewStatus: '',
      // 提供者组织名称
      providerName: '',
      // 圆形图标
      iconUrl: '',
      // 方形图标
      squareUrl: '',
      // 海报地址
      posterUrl: '',
      // 文件扩展名
      extension: ''
    };
    super(Fields);
  }

  get id () {
    return this._id;
  }

  set id (val) {
    this._id = val;
  }

  get name () {
    return this._name;
  }

  set name (val) {
    this._name = val;
  }

  get fileFormat () {
    return this._fileFormat;
  }

  set fileFormat (val) {
    this._fileFormat = val;
  }

  get scoreNum () {
    return this._scoreNum;
  }

  set scoreNum (val) {
    this._scoreNum = val;
  }

  get hotNum () {
    return this._hotNum;
  }

  set hotNum (val) {
    this._hotNum = val;
  }

  get createTime () {
    return this._createTime;
  }

  set createTime (val) {
    this._createTime = val;
  }

  get createName () {
    return this._createName;
  }

  set createName (val) {
    this._createName = val;
  }

  get reviewStatus () {
    return this._reviewStatus;
  }

  set reviewStatus (val) {
    this._reviewStatus = val;
  }

  get providerName () {
    return this._providerName;
  }

  set providerName (val) {
    this._providerName = val;
  }

  get iconUrl () {
    return this._iconUrl;
  }

  set iconUrl (val) {
    this._iconUrl = val;
  }

  get squareUrl () {
    return this._squareUrl;
  }

  set squareUrl (val) {
    this._squareUrl = val;
  }

  get posterUrl () {
    return this._posterUrl;
  }

  set posterUrl (val) {
    this._posterUrl = val;
  }

  get extension () {
    return this._extension;
  }

  set extension (val) {
    this._extension = val;
  }
}
export default class ResourceData extends YJTObject {
  constructor () {
    const Fields = {
      content: {
        type: Array,
        generics: ContentData
      },
      // 总记录数
      total: {
        type: Number
      },
      // 当前页码
      pageNum: {
        type: Number,
        default: 1
      },
      // 分页大小
      pageSize: {
        type: Number,
        default: 10
      },
      // 页数
      pages: {
        type: Number
      }
    };
    super(Fields);
  }

  get content () {
    return this._content;
  }

  set content (val) {
    this._content = val;
  }

  get total () {
    return this._total;
  }

  set total (val) {
    this._total = val;
  }

  get pageNum () {
    return this._pageNum;
  }

  set pageNum (val) {
    this._pageNum = val;
  }

  get pageSize () {
    return this._pageSize;
  }

  set pageSize (val) {
    this._pageSize = val;
  }

  get pages () {
    return this._pages;
  }

  set pages (val) {
    this._pages = val;
  }
}
